package main
import (
	"fmt"
)
//矩阵变换函数
func change(temp [3][3]int){
	var t int
	for i := 0 ; i <= 3 ; i++{
		for j := i ; j < 3 ; j++{
			t = temp[i][j]
			temp[i][j] = temp[j][i]
			temp[j][i] = t	
		}
	}
	for index,val := range temp{
		fmt.Println(index,"=s=s=",val)
	}
}	

func main(){
	fmt.Println("二维矩阵示例！")
	var number = [3][3]int{{1,2,3},{4,5,6},{7,8,9}}
	for index,val := range number{
		fmt.Println(index,"===",val)
	}
	change(number)
}
